{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<style>
#huiedit{
    background-color: #1ab394;
    color: #FFFFFF;
}
#huidel{
    background-color: #ed5565;
    color: #FFFFFF;
}
#hui{
     width: 50px;
        height: 50px;
}
</style>
</head>

<body class="gray-bg">
   <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <a href="{:url('admin/Meetings/userDownload_car')}?meeting_id={$meeting_id}" id="huiedit" class="btn btn-white btn-sm">用车信息导出 </a>
                        <div class="ibox-tools">
							<a href="{:url('admin/Meetings/userList',['meeting_id'=>$meeting_id])}"
								class="btn btn-primary btn-xs">返回列表</a>
						</div>
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm refresh" ><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                        </div>

                        <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="50" data-filter=#filter>
                            <thead>
                                    <tr>
                                        <th>序列</th>
                                        <th>用途</th>
                                        <th>司机</th>
                                        <th>司机电话</th>
                                        <th>车辆</th>
                                        <th>车牌</th>
                                        <th>用车时间</th>
                                        <th>安排接车时间</th>
                                        <th>出发地</th>
                                        <th>目的地</th>
                                        <th>是否完成</th>
                                        <th>创建时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach name="res" id="vo" key="key"}
                                    <tr class="gradeX">
                                        <td>{$key+1}</td>
                                        <td>{if condition="$vo.type eq 1"}接机{elseif condition="$vo.type eq 2" /}送机{else/}市内{/if}</td>
                                        <td>{$vo.driver_name}</td>
                                        <td>{$vo.driver_mobile}</td>
                                        <td>{$vo.car_name}</td>
                                        <td>{$vo.number}</td>
                                        <td>{if condition="$vo.use_car_time neq 1"}单程{elseif condition="$vo.use_car_time neq 2"}半天{else}全天{/if}</td>
                                        <td>{$vo.receive_time}</td>
                                        <td>{$vo.start_add}</td>
                                        <td>{$vo.end_add}</td>
                                        <td>
                                        {if condition="$vo.status eq 0"}
                                                                                                    未安排
                                        {elseif condition="$vo.status eq 1"}
                                                                                                     已安排
                                        {elseif condition="$vo.status eq 5"}
                                                                                                     空驶
                                        {elseif condition="$vo.status eq 6"}
                                                                                                     已完成
                                        {else}
                                        {/if}
                                        </td>
                                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                                <tfoot hidden="hidden">
                                    <tr>
                                        <td colspan="5">
                                            <ul class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>   
                        </table>
                        <div class="item-page" style="padding-left:36%;">
                        
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        
    {include file="public/_footer" /}
    <script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
    
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
            
            $('.refresh').click(function(){
                window.location.reload();   // 刷新页面
            })
            
            //iframe窗
            $('.edit').click(function(){
                var url = $(this).attr('data-url');
                var index = layer.open({
                    type : 2,
                    fixed: true,
                    scrollbar: false,
                    title : '编辑',
                    shadeClose : false,
                    maxmin : true, //开启最大化最小化按钮
                    area : ['893px', '600px'],
                    //offset: '100px',
                    content : url
                });
                layer.full(index);
            })
        });
    </script>
</body>
</html>
